#include <stdio.h>
#include <string.h>
#include <cstdlib>
int my_data[2] = {1,2};
int calc_index(void)
{
    /* 故意返回一个错误值 */
    return -7;
}
int main()
{
    int idx = calc_index();
    my_data[idx] = 0x0a;
    my_data[idx+1] = 0x08;
    printf("this is a message\n");
    return EXIT_SUCCESS;
}

